package com.xjm.childmodule;

import com.xjm.childmodule.server.NettyServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class NettySpringBootApplication {

    public static void main(String[] args) {
        SpringApplication.run(NettySpringBootApplication.class, args);
        try {
            new NettyServer(12345).start();
        }catch(Exception e) {
            System.out.println("NettyServerError:"+e.getMessage());
        }
    }

}
